<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息表</title>
</head>
<body>
    <h1>用户信息</h1>
    <table width="600" border="1px">
        <tr>
            <th>ID:</th>
            <th>NAME:</th>
            <th>SEX:</th>
        </tr>
        {{foreach $data as $v}}
        <tr>
            <td>{{$v['id']}}</td>
            <td>{{$v['name']}}</td>
            <td>{{$v['sex']}}</td>
        </tr>
        {{/foreach}}
    </table>
</body>
</html>